package com.xianguo.datacenter.service;

import java.util.List;
import java.util.Map;

import com.xianguo.datacenter.domain.CenterFile;
import com.xianguo.datacenter.domain.CenterFolder;
import com.xianguo.datacenter.domain.Disk;
import com.xianguo.datacenter.download.Thread.Download.DownloadState;


public interface CommonService {
	/**
	 * 获取磁盘列表
	 * @return
	 */
	public List<Disk> getDiskList();
	
	/**
	 * 
	 * 作者:鲜果
	 * 2018年6月26日
	 * @param path
	 * @return
	 */
	public CenterFolder getFolder(String path);
	
	/**
	 * 新建Http下载
	 * @return
	 */
	public void AddHttpdownload(String url, String saveDir, String fileName); 
	
	/**
	 * 新建百度云下载
	 * @return
	 */
	public Map<String,String> addBaiDuYunDownload(String url, String saveDir,String webPath);
	
	/**
	 * 写入百度云验证码
	 * @return
	 */
	public Map<String, String> setBaiDuYunVCode(String UID, String VCode);
	
	/**
	 * 暂停或继续下载
	 * @param UID
	 * @param isdownloading
	 */
	public void changeDownloadState(String UID,DownloadState isdownloading);
	
	public void insertFile(CenterFile file);
	
	public void deleteAllFile();
	
	public void insertType();
	
	public List<Map<String, Object>> selectType();
}
